package com.example.prison.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.prison.entity.DeviceManagement;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【device_management】的数据库操作Service
* @createDate 2023-06-20 15:14:12
*/
public interface DeviceManagementService extends IService<DeviceManagement> {

    PageInfo<DeviceManagement> get(int pageNumber, int pageSize);

    PageInfo<DeviceManagement> list(int pageNumber, int pageSize, String type, String deviceNumber);

    int add(DeviceManagement device);

    void delete(Integer[] ids);

    int update(DeviceManagement device, Integer id);

    DeviceManagement getById(Integer id);

    PageInfo<DeviceManagement> getByType(int pageNumber, int pageSize, String type);

    PageInfo<DeviceManagement> getByNumber(int pageNumber, int pageSize, String deviceNumber);

    DeviceManagement getOneByNumber(String deviceNumber);

}
